package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.db.jpa.Model;
/**
 * 操作日志model::记录所有用户的操作
 * 
 * @see BaseModule
 * @since 1.0
 * @author Mr.J.
 * **/
@Entity
public class OperationLog extends Model implements BaseModule{
	//操作时间
	@Temporal(TemporalType.TIMESTAMP)
	public Date time;
	//操作内容
	public String content;
	
	@ManyToOne
	public User user;
}
